package IGoods

import (
	"context"
	goods_pb "mxshop/api/goods/v1"
	doGoods "mxshop/app/mxshop_api/api/internal/domain/do/goods"
)

type Category interface {
	AllList(ctx context.Context) (*doGoods.CategoryDOList, error)
	List(ctx context.Context, req *goods_pb.CategoryListRequest) (*doGoods.CategoryDOList, error)
	SubList(ctx context.Context, req *goods_pb.CategoryListRequest) (*doGoods.CategoryDO, error)
	Create(ctx context.Context, req *doGoods.CategoryDO) (*doGoods.CategoryDO, error)
	Update(ctx context.Context, req *doGoods.CategoryDO) error
	Delete(ctx context.Context, id int64) error
}
